package cn.itcast.java.serialize;

import java.io.Serializable;

/**
 * Author itcast
 * Date 2021/10/13 6:28
 * Desc TODO
 */
public class Student implements Serializable {
    private static final long serialVersionUID = 2L;
    private transient String name;
    private int age;
    private int clazz;

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", clazz=" + clazz +
                '}';
    }

    public Student(String name, int age, int clazz) {
        this.name = name;
        this.age = age;
        this.clazz = clazz;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getClazz() {
        return clazz;
    }

    public void setClazz(int clazz) {
        this.clazz = clazz;
    }

    public Student() {
    }
}
